package com.techsoul.module.tms.service;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.techsoul.module.tms.pojo.entity.TPoPurchaseOrder;
import com.techsoul.module.tms.pojo.param.TFoFreightOrderSearchParam;
import com.techsoul.module.tms.pojo.param.TPoPurchaseOrderSaveParam;
import com.techsoul.module.tms.pojo.param.TPoPurchaseOrderSearchParam;
import com.techsoul.module.tms.pojo.vo.TFoFreightOrderVo;
import com.techsoul.module.tms.pojo.vo.TPoPurchaseOrderVo;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.RandomUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.*;

/**
 * 物流计划
 *
 * @author zhaowei
 * @since 2021-05-24 19:07:22
 */
public interface ITPoPurchaseOrderService {
    /**
     * 待派车
     */


     String insert(TPoPurchaseOrderSaveParam params);

     void delete(String id);

     void update(String id, TPoPurchaseOrderSaveParam params) ;

     TPoPurchaseOrderVo findById(String id);

     List<TPoPurchaseOrder> findAll();

     List<TPoPurchaseOrderVo> findAll(TPoPurchaseOrderSearchParam params);

    IPage<TPoPurchaseOrderVo> findAll(TPoPurchaseOrderSearchParam params, Integer currentPage, Integer pageSize) ;


}
